/* 页面整体样式 */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 标题样式 */
h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #007BFF;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.action-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addButton {
    background-color: #28a745;
}

#showFormButton {
    background-color: #17a2b8;
}

#deleteButton {
    background-color: #dc3545;
}

#maintainButton {
    background-color: #ffc107;
}

.action-buttons button:hover {
    opacity: 0.9;
}

/* 维护详情样式 */
#maintenanceDetails {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#maintenanceDetails div {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 红绿灯样式 */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.status-complete {
    background-color: #28a745; /* 绿灯 */
}

.status-incomplete {
    background-color: #dc3545; /* 红灯 */
}

/* 弹窗和遮罩层样式 */
#popupForm {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

#overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 弹窗按钮样式 */
.popup-button {
    padding: 12px 25px;
    margin: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-button:hover {
    background-color: #0056b3;
}

/* 表单输入框样式 */
#popupForm input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.hidden-button {
    position: absolute;
    top: 10px; /* 页面顶部 */
    left: 10px; /* 页面左侧 */
    width: 50px;
    height: 50px;
    opacity: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}
